package com.test.proxy;

import com.test.pojo.Host;
import com.test.pojo.Rent;

public class Proxy01 implements Rent {

    private Host host;
    public Proxy01(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        this.seeHost();
        host.rent();
        this.doSign();
        this.fee();
    }

    public void seeHost(){
        System.out.println("看房子");
    }

    public void doSign(){
        System.out.println("签合同");
    }

    public void fee(){
        System.out.println("收中介费");
    }

}
